import VueRouter from 'vue-router'
import index from '../../components/index/index'
import main from '../../components/index/main'
import product from '../../components/botmNav/product'
import aircon from '../../components/details/aircon'
import computer from '../../components/details/computer'
import fridge from '../../components/details/fridge'
import hot from '../../components/details/hot'
import kitchen from '../../components/details/kitchen'
import little from '../../components/details/little'
import tv from '../../components/details/tv'
import wash from '../../components/details/wash'
import winebar from '../../components/details/winebar'
import shop from '../../components/botmNav/shop'
import shoppingCar from '../../components/details/shoppingCar'
import xxz from '../../components/details/xxz'



export default new VueRouter({
    routes:[
        {
          path:'/main',
          component:index,
          children:[
            {
                path:'/main',
                component:main
            },
            {
                path:'/shoppingCar',
                component:shoppingCar
            }
          ]
        },
        {
          path:'/xxz',
          component:xxz
        },
        {
          path:'/product',
          component:product,
          children:[
            {
              path:'/aircon',
              name:'aircon',
              component:aircon
            },
            {
              path:'/computer',
              name:'computer',
              component:computer
            },
            {
              path:'/fridge',
              name:'fridge',
              component:fridge
            },
            {
              path:'/hot',
              name:'hot',
              component:hot
            },
            {
              path:'kitchenr',
              name:'kitchen',
              component:kitchen
            },
            {
              path:'/little',
              name:'little',
              component:little
            },
            {
              path:'/tv',
              name:'tv',
              component:tv
            },
            {
              path:'/wash',
              name:'wash',
              component:wash
            },
            {
              path:'/winebar',
              name:'winebar',
              component:winebar
            },
            {
              path:'/product',
              redirect:'/fridge'
            }
          ]
        },
        {
          path:'/shop',
          component:shop,
        },
        {
          path:'/',
          redirect:'/main'
        }
    ]
})
